package cn.sofwin.boot.crud.entity;

import java.util.Date;
import cn.sofwin.core.mvc.entity.IdEntity;

/**
 * 实体
 * @author LetCode
 * @since 1.0
 *
 */
public class User extends IdEntity {
	
	private static final long serialVersionUID = -8145085849354064117L;
	
	/** 用户名 */
	private String username;

	/** 密码 */
	private String password;

	/** 昵称 */
	private String nickname;

	/** 添加时间 */
	private Date addTime;

	/** 状态：-1删除，0冻结，1正常 */
	private Integer status;

	public User() {
	}

	public User(Integer id) {
		this.id = id;
	}
	
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getNickname() {
		return this.nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	
	public Date getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
}